Skip to content

feat(ext_proc): add support for observability mode - #8536

Merged
arkodg merged 17 commits into
envoyproxy:mainfrom
skos-ninja:feat/ext_proc/obsv_mode
Jul 20, 2026
Merged

feat(ext_proc): add support for observability mode#8536
arkodg merged 17 commits into
envoyproxy:mainfrom
skos-ninja:feat/ext_proc/obsv_mode

Conversation

@skos-ninja

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Adds support for setting observability_mode within the ext_proc so that non blocking processors are able to be setup using CRDs.

We need this in order to enable admission hooks within our infrastructure that allows us to enforce that certain ext_proc's that are setup in the correct way

Which issue(s) this PR fixes:
Fixes #8289

Release Notes: Yes (but currently not added)

@skos-ninja
skos-ninja requested a review from a team as a code owner March 17, 2026 03:54
@netlify

netlify Bot commented Mar 17, 2026

Copy link
Copy Markdown

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit b7eb0d1
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6a56e86a47ded100082453b6
😎 Deploy Preview https://deploy-preview-8536--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@skos-ninja
skos-ninja force-pushed the feat/ext_proc/obsv_mode branch 2 times, most recently from e05c278 to c25a980 Compare March 17, 2026 04:01
Comment thread api/v1alpha1/ext_proc_types.go Outdated
// +optional
ProcessingMode *ExtProcProcessingMode `json:"processingMode,omitempty"`

// ObservabilityMode sets if envoy gateway should treat this external processor as "send and go"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be called ShadowMode instead to keep naming unform ?
@envoyproxy/gateway-maintainers

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on ShadowMode which keep same as Ratelimit.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 1c24edb

Comment thread api/v1alpha1/ext_proc_types.go Outdated
// ObservabilityMode sets if envoy gateway should treat this external processor as "send and go"
//
// +optional
// +kubebuilder:default=false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets rm the kubebuilder annotation, and add a comment instead that it defaults to false

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 4cfd91c

@skos-ninja
skos-ninja force-pushed the feat/ext_proc/obsv_mode branch from 4cfd91c to a2927a0 Compare March 24, 2026 17:22
@skos-ninja

Copy link
Copy Markdown
Contributor Author

@arkodg anything we can do to progress this (I'll fix the DCO shortly)

@arkodg

arkodg commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

ptal @envoyproxy/gateway-maintainers

@guydc

guydc commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

overall lgtm, let's just align the naming.

skos-ninja and others added 3 commits April 28, 2026 13:21
Signed-off-by: Jake Oliver <jake@truelayer.com>
Signed-off-by: Jake Oliver <jake@truelayer.com>
Signed-off-by: Jake Oliver <jake@truelayer.com>
@skos-ninja
skos-ninja force-pushed the feat/ext_proc/obsv_mode branch from 4b8204e to 1c24edb Compare April 28, 2026 12:22
@skos-ninja

Copy link
Copy Markdown
Contributor Author

Thanks folks for your review. I've fixed DCO and now updated all of the references to be shadowMode instead

@skos-ninja
skos-ninja force-pushed the feat/ext_proc/obsv_mode branch 3 times, most recently from d83041a to 7ed9ec2 Compare May 1, 2026 14:14
Signed-off-by: Jake Oliver <jake@truelayer.com>
@skos-ninja
skos-ninja force-pushed the feat/ext_proc/obsv_mode branch from 7ed9ec2 to 5d96dd4 Compare May 1, 2026 14:17
@skos-ninja

Copy link
Copy Markdown
Contributor Author

@arkodg sorry for the poke. any chance of us getting this reviewed and merged before the next release 🥺

@guydc

guydc commented May 1, 2026

Copy link
Copy Markdown
Contributor

Hi @skos-ninja - looks like 1.8.0 RC was already cut, so we're now in an API freeze until the release. Apologies that it didn't make it in 1.8.*.

@arkodg arkodg added this to the v1.9.0-rc.1 Release milestone May 4, 2026
@arkodg

arkodg commented May 4, 2026

Copy link
Copy Markdown
Contributor

hey @skos-ninja can you fix make test and make lint

skos-ninja added 2 commits May 4, 2026 04:32
Signed-off-by: Jake Oliver <jake@truelayer.com>
Signed-off-by: Jake Oliver <jake@truelayer.com>
@skos-ninja

Copy link
Copy Markdown
Contributor Author

Hey @arkodg I've changed the errors I can see but for some reason when I run make lint locally I get a bunch of errors about undefined: ptr in cel-validation/envoyextensionpolicy_test.go:1346:18 so not too sure what is going on there.

Is it possible to run the actions again so I can see the output here?

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Jun 3, 2026
@github-actions github-actions Bot closed this Jun 10, 2026
@suryapandian

suryapandian commented Jun 15, 2026

Copy link
Copy Markdown

Nooo! @arkodg @guydc can we please release this? This will unblock some of the initiatives at our org. cc: @skos-ninja 🙏

@arkodg arkodg reopened this Jun 15, 2026
@github-actions github-actions Bot removed the stale label Jun 15, 2026
@zirain

zirain commented Jun 16, 2026

Copy link
Copy Markdown
Member

@skos-ninja can you make the CI happy?

lboynton added 5 commits July 9, 2026 16:53
Signed-off-by: Lee Boynton <lee.boynton@truelayer.com>
…t/ext_proc/obsv_mode

Signed-off-by: Lee Boynton <lee.boynton@truelayer.com>
… test

Signed-off-by: Lee Boynton <lee.boynton@truelayer.com>
Signed-off-by: Lee Boynton <lee.boynton@truelayer.com>
@lboynton

Copy link
Copy Markdown
Contributor

@skos-ninja can you make the CI happy?

Hopefully it should pass now 🙏

@arkodg arkodg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.28%. Comparing base (d48f7a3) to head (f1e94c3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8536   +/-   ##
=======================================
  Coverage   75.28%   75.28%           
=======================================
  Files         252      252           
  Lines       41536    41540    +4     
=======================================
+ Hits        31271    31275    +4     
- Misses       8141     8142    +1     
+ Partials     2124     2123    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lboynton

Copy link
Copy Markdown
Contributor

/retest

1 similar comment
@lboynton

Copy link
Copy Markdown
Contributor

/retest

@arkodg
arkodg merged commit 2646c11 into envoyproxy:main Jul 20, 2026
33 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EnvoyExtensionPolicy doesn't support observability mode

6 participants